
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>第一节 Redis 的安装与配置 · 我的世界服务器搭建指南</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Mhy278,Drenal，冰冷，asougi85，魂葬，弱鸡绿毛怪，tdiant，蛋黄酱，Hmm1313133，几何，火雨，Auange_M夜幕">
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="styles/website.css">
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="MongoDB.html" />
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    开始
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="Preparation.html">
            
                <a href="Preparation.html">
            
                    
                    准备工作
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    第一单元 基础
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="First.html">
            
                <a href="First.html">
            
                    
                    第一节 第一次的开服
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="Structure.html">
            
                <a href="Structure.html">
            
                    
                    第二节 服务端的结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="Plugin.html">
            
                <a href="Plugin.html">
            
                    
                    第三节 什么是插件？
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="Mod.html">
            
                <a href="Mod.html">
            
                    
                    第四节 什么是模组？
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="World.html">
            
                <a href="World.html">
            
                    
                    第五节 什么是世界？
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="Log.html">
            
                <a href="Log.html">
            
                    
                    第六节 什么是日志？
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    第二单元 进阶
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="RunScript.html">
            
                <a href="RunScript.html">
            
                    
                    第一节 认识启动脚本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="Yaml.html">
            
                <a href="Yaml.html">
            
                    
                    第二节 认识YAML语法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="Permission.html">
            
                <a href="Permission.html">
            
                    
                    第三节 什么是权限？
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="Sql.html">
            
                <a href="Sql.html">
            
                    
                    第四节 数据库的使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="WhatsError.html">
            
                <a href="WhatsError.html">
            
                    
                    第五节 什么是报错？
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="Optimization.html">
            
                <a href="Optimization.html">
            
                    
                    第六节 配置文件优化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="Bungee.html">
            
                <a href="Bungee.html">
            
                    
                    第七节 什么是跨服？
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.8" data-path="Maintain.html">
            
                <a href="Maintain.html">
            
                    
                    第八节 系统运行维护
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    第三单元 扩展
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.5.1" data-path="Redis.html">
            
                <a href="Redis.html">
            
                    
                    第一节 Redis 的安装与配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="MongoDB.html">
            
                <a href="MongoDB.html">
            
                    
                    第二节 MongoDB 的安装与配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="Texture.html">
            
                <a href="Texture.html">
            
                    
                    第三节 认识资源包
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="Skin.html">
            
                <a href="Skin.html">
            
                    
                    第四节 什么是皮肤？
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="Model.html">
            
                <a href="Model.html">
            
                    
                    第五节 什么是3D建模？
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    第四单元 开发
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="Java.html">
            
                <a href="Java.html">
            
                    
                    第一节 Java 编程基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="Bukkit.html">
            
                <a href="Bukkit.html">
            
                    
                    第二节 Bukkit插件开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="Sponge.html">
            
                <a href="Sponge.html">
            
                    
                    第三节 Sponge插件开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="Forge.html">
            
                <a href="Forge.html">
            
                    
                    第四节 Forge 模组开发
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <span>
            
                    
                    附录
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="SearchEngine.html">
            
                <a href="SearchEngine.html">
            
                    
                    认识搜索引擎
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="How-To-Ask-Questions-The-Smart-Way.html">
            
                <a href="How-To-Ask-Questions-The-Smart-Way.html">
            
                    
                    提问的智慧
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >第一节 Redis 的安装与配置</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x7B2C;&#x4E00;&#x8282;-redis-&#x7684;&#x5B89;&#x88C5;&#x4E0E;&#x914D;&#x7F6E;">&#x7B2C;&#x4E00;&#x8282; Redis &#x7684;&#x5B89;&#x88C5;&#x4E0E;&#x914D;&#x7F6E;</h1>
<h2 id="&#x7B80;&#x4ECB;">&#x7B80;&#x4ECB;</h2>
<p>Redis&#xFF08;&#x5168;&#x79F0;&#xFF1A;Remote Dictionary Server &#x8FDC;&#x7A0B;&#x5B57;&#x5178;&#x670D;&#x52A1;&#xFF09;&#x662F;&#x4E00;&#x4E2A;&#x5F00;&#x6E90;&#x7684;&#x4F7F;&#x7528;ANSI C&#x8BED;&#x8A00;&#x7F16;&#x5199;&#x3001;&#x652F;&#x6301;&#x7F51;&#x7EDC;&#x3001;&#x53EF;&#x57FA;&#x4E8E;&#x5185;&#x5B58;&#x4EA6;&#x53EF;&#x6301;&#x4E45;&#x5316;&#x7684;&#x65E5;&#x5FD7;&#x578B;&#x3001;Key-Value&#x6570;&#x636E;&#x5E93;&#xFF0C;&#x5E76;&#x63D0;&#x4F9B;&#x591A;&#x79CD;&#x8BED;&#x8A00;&#x7684;API&#x3002;</p>
<ul>
<li>Redis &#x662F;&#x5B8C;&#x5168;&#x5F00;&#x6E90;&#x514D;&#x8D39;&#x7684;&#xFF0C;&#x9075;&#x5B88;BSD&#x534F;&#x8BAE;&#xFF0C;&#x662F;&#x4E00;&#x4E2A;&#x9AD8;&#x6027;&#x80FD;&#x7684; key-value &#x6570;&#x636E;&#x5E93;&#x3002;</li>
<li>Redis &#x4E0E;&#x5176;&#x4ED6; key-value &#x7F13;&#x5B58;&#x4EA7;&#x54C1;&#x6709;&#x4EE5;&#x4E0B;&#x4E09;&#x4E2A;&#x7279;&#x70B9;&#xFF1A;</li>
<li>Redis&#x652F;&#x6301;&#x6570;&#x636E;&#x7684;&#x6301;&#x4E45;&#x5316;&#xFF0C;&#x53EF;&#x4EE5;&#x5C06;&#x5185;&#x5B58;&#x4E2D;&#x7684;&#x6570;&#x636E;&#x4FDD;&#x5B58;&#x5728;&#x78C1;&#x76D8;&#x4E2D;&#xFF0C;&#x91CD;&#x542F;&#x7684;&#x65F6;&#x5019;&#x53EF;&#x4EE5;&#x518D;&#x6B21;&#x52A0;&#x8F7D;&#x8FDB;&#x884C;&#x4F7F;&#x7528;&#x3002;</li>
<li>Redis&#x4E0D;&#x4EC5;&#x4EC5;&#x652F;&#x6301;&#x7B80;&#x5355;&#x7684; key-value &#x7C7B;&#x578B;&#x7684;&#x6570;&#x636E;&#xFF0C;&#x540C;&#x65F6;&#x8FD8;&#x63D0;&#x4F9B;list&#xFF0C;set&#xFF0C;zset&#xFF0C;hash&#x7B49;&#x6570;&#x636E;&#x7ED3;&#x6784;&#x7684;&#x5B58;&#x50A8;&#x3002;</li>
<li>Redis&#x652F;&#x6301;&#x6570;&#x636E;&#x7684;&#x5907;&#x4EFD;&#xFF0C;&#x5373; master-slave &#x6A21;&#x5F0F;&#x7684;&#x6570;&#x636E;&#x5907;&#x4EFD;&#x3002;<h2 id="&#x4F18;&#x52BF;">&#x4F18;&#x52BF;</h2>
</li>
<li>&#x6027;&#x80FD;&#x6781;&#x9AD8; &#x2013; Redis&#x80FD;&#x8BFB;&#x7684;&#x901F;&#x5EA6;&#x662F;110000&#x6B21;/s,&#x5199;&#x7684;&#x901F;&#x5EA6;&#x662F;81000&#x6B21;/s &#x3002;</li>
<li>&#x4E30;&#x5BCC;&#x7684;&#x6570;&#x636E;&#x7C7B;&#x578B; &#x2013; Redis&#x652F;&#x6301;&#x4E8C;&#x8FDB;&#x5236;&#x6848;&#x4F8B;&#x7684; Strings, Lists, Hashes, Sets &#x53CA; Ordered Sets &#x6570;&#x636E;&#x7C7B;&#x578B;&#x64CD;&#x4F5C;&#x3002;</li>
<li>Redis&#x7684;&#x6240;&#x6709;&#x64CD;&#x4F5C;&#x90FD;&#x662F;&#x539F;&#x5B50;&#x6027;&#x7684;&#xFF0C;&#x610F;&#x601D;&#x5C31;&#x662F;&#x8981;&#x4E48;&#x6210;&#x529F;&#x6267;&#x884C;&#x8981;&#x4E48;&#x5931;&#x8D25;&#x5B8C;&#x5168;&#x4E0D;&#x6267;&#x884C;&#x3002;&#x5355;&#x4E2A;&#x64CD;&#x4F5C;&#x662F;&#x539F;&#x5B50;&#x6027;&#x7684;&#x3002;&#x591A;&#x4E2A;&#x64CD;&#x4F5C;&#x4E5F;&#x652F;&#x6301;&#x4E8B;&#x52A1;&#xFF0C;&#x5373;&#x539F;&#x5B50;&#x6027;&#xFF0C;&#x901A;&#x8FC7;MULTI&#x548C;EXEC&#x6307;&#x4EE4;&#x5305;&#x8D77;&#x6765;&#x3002;</li>
<li>&#x4E30;&#x5BCC;&#x7684;&#x7279;&#x6027; &#x2013; Redis&#x8FD8;&#x652F;&#x6301; publish/subscribe, &#x901A;&#x77E5;, key &#x8FC7;&#x671F;&#x7B49;&#x7B49;&#x7279;&#x6027;&#x3002;</li>
</ul>
<h2 id="&#x4E0B;&#x8F7D;">&#x4E0B;&#x8F7D;</h2>
<h3 id="window-&#x7CFB;&#x7EDF;">Window &#x7CFB;&#x7EDF;</h3>
<p>&#x4E0B;&#x8F7D;&#x5730;&#x5740;&#xFF1A;<a href="https://github.com/MSOpenTech/redis/releases" target="_blank">https://github.com/MSOpenTech/redis/releases</a></p>
<h3 id="linux-&#x7CFB;&#x7EDF;">Linux &#x7CFB;&#x7EDF;</h3>
<p>&#x4E0B;&#x8F7D;&#x5730;&#x5740;&#xFF1A;<a href="https://redis.io/download" target="_blank">https://redis.io/download</a></p>
<p><strong>&#x6CE8;&#xFF1A;Redis&#x5B98;&#x65B9;&#x5E76;&#x65E0;Windows&#x652F;&#x6301;&#xFF0C;&#x76EE;&#x524D;Redis&#x4E3B;&#x7248;&#x672C;&#x5DF2;&#x5230;5.X&#xFF0C;&#x800C;Windows&#x4E0B;&#x7684;&#x6700;&#x9AD8;&#x7248;&#x672C;&#x4ECD;&#x4E3A;3.2.100&#x3002;</strong></p>
<h2 id="msi&#x5B89;&#x88C5;&#x6A21;&#x5F0F;">Msi&#x5B89;&#x88C5;&#x6A21;&#x5F0F;</h2>
<p>&#x82E5;&#x60F3;&#x91C7;&#x7528;&#x6B64;&#x6A21;&#x5F0F;&#x5219;&#x5E94;&#x5728;&#x4E0A;&#x65B9;&#x4E0B;&#x8F7D;&#x5730;&#x5740;&#x4E2D;&#x9009;&#x62E9;&#x4E0B;&#x8F7D;<a href="https://github.com/microsoftarchive/redis/releases/download/win-3.2.100/Redis-x64-3.2.100.msi" target="_blank">Redis-x64-3.2.100.msi</a></p>
<ul>
<li>&#x901A;&#x8FC7;&#x6B64;&#x6A21;&#x5F0F;&#x5B89;&#x88C5;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x5BF9;Redis&#x8FDB;&#x884C;&#x7B80;&#x6613;&#x7684;&#x5B89;&#x88C5;&#x914D;&#x7F6E;</li>
<li>&#x9996;&#x5148;&#x53CC;&#x51FB;&#x6253;&#x5F00;Redis-x64-3.2.100.msi&#xFF0C;&#x7B49;&#x5F85;&#x6587;&#x4EF6;&#x8BFB;&#x53D6;&#x5B8C;&#x6210;&#x5373;&#x53EF;&#x70B9;&#x51FB;NEXT&#x6309;&#x94AE;</li>
<li>&#x70B9;&#x51FB;NEXT&#x6309;&#x94AE;&#x540E;&#x9700;&#x8981;&#x540C;&#x610F;&#x8F6F;&#x4EF6;&#x4F7F;&#x7528;&#x534F;&#x8BAE;&#xFF0C;&#x9009;&#x4E2D;I accept the terms in the Licenes Agreement&#x590D;&#x9009;&#x6846;&#x5373;&#x53EF;&#x518D;&#x6B21;&#x70B9;&#x51FB;NEXT&#x6309;&#x94AE;</li>
<li>&#x9009;&#x62E9;&#x8F6F;&#x4EF6;&#x7684;&#x5B89;&#x88C5;&#x76EE;&#x5F55;&#xFF0C;&#x5982;&#x4E0D;&#x4E86;&#x89E3;&#x6B64;&#x9009;&#x9879;&#x7684;&#x5177;&#x4F53;&#x542B;&#x4E49;&#x8BF7;&#x76F4;&#x63A5;&#x70B9;&#x51FB;NEXT&#x6309;&#x94AE;&#x8FDB;&#x5165;&#x4E0B;&#x4E00;&#x6B65;</li>
<li>&#x8BBE;&#x7F6E;Redis&#x670D;&#x52A1;&#x7684;&#x8FD0;&#x884C;&#x7AEF;&#x53E3;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A;6379&#xFF0C;&#x5982;&#x4E0D;&#x4E86;&#x89E3;&#x6B64;&#x9009;&#x9879;&#x7684;&#x5177;&#x4F53;&#x542B;&#x4E49;&#x8BF7;&#x76F4;&#x63A5;&#x70B9;&#x51FB;NEXT&#x6309;&#x94AE;&#x8FDB;&#x5165;&#x4E0B;&#x4E00;&#x6B65;</li>
<li>&#x8BBE;&#x7F6E;Redis&#x670D;&#x52A1;&#x7684;&#x8FD0;&#x884C;&#x5185;&#x5B58;&#x9650;&#x5236;&#xFF0C;&#x5EFA;&#x8BAE;&#x4E3A;&#x670D;&#x52A1;&#x5668;&#x603B;&#x5185;&#x5B58;&#x7684;5%-10%&#xFF0C;&#x5982;&#x4E0D;&#x4E86;&#x89E3;&#x6B64;&#x9009;&#x9879;&#x7684;&#x5177;&#x4F53;&#x542B;&#x4E49;&#x8BF7;&#x76F4;&#x63A5;&#x70B9;&#x51FB;NEXT&#x6309;&#x94AE;&#x8FDB;&#x5165;&#x4E0B;&#x4E00;&#x6B65;</li>
<li>&#x5728;&#x8FD9;&#x4E00;&#x6B65;&#x76F4;&#x63A5;&#x70B9;&#x51FB;Install&#x6309;&#x94AE;&#x5373;&#x53EF;&#x8FDB;&#x5165;Redis&#x7684;&#x5B89;&#x88C5;&#x8FC7;&#x7A0B;</li>
<li>&#x7B49;&#x5F85;&#x8FDB;&#x5EA6;&#x6761;&#x5B8C;&#x6210;&#x540E;&#x70B9;&#x51FB;Finish&#x6309;&#x94AE;&#x5373;&#x53EF;&#x5B8C;&#x6210;&#x5B89;&#x88C5;&#xFF0C;&#x6B64;&#x65F6;Redis&#x7684;&#x7CFB;&#x7EDF;&#x670D;&#x52A1;&#x4E5F;&#x5DF2;&#x81EA;&#x52A8;&#x542F;&#x52A8;&#xFF0C;&#x73B0;&#x5728;&#x53EA;&#x9700;&#x8981;&#x5728;&#x76F8;&#x5173;&#x7684;&#x63D2;&#x4EF6;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x914D;&#x7F6E;&#x597D;Redis&#x7684;&#x94FE;&#x63A5;&#x4FE1;&#x606F;&#x5373;&#x53EF;&#x4F7F;&#x7528;&#xFF0C;&#x8BF7;&#x6CE8;&#x610F;&#xFF0C;&#x5728;&#x60A8;&#x672A;&#x66F4;&#x6539;Redis&#x9ED8;&#x8BA4;&#x914D;&#x7F6E;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;Redis&#x7684;&#x9ED8;&#x8BA4;&#x94FE;&#x63A5;&#x4FE1;&#x606F;&#x4E3A;&#xFF1A;
Host:127.0.0.1
Port:6379
Pass:&#x9ED8;&#x8BA4;&#x4E3A;&#x7A7A;</li>
</ul>
<h2 id="&#x89E3;&#x538B;&#x53EF;&#x7528;&#x6A21;&#x5F0F;">&#x89E3;&#x538B;&#x53EF;&#x7528;&#x6A21;&#x5F0F;</h2>
<p>&#x82E5;&#x60F3;&#x91C7;&#x7528;&#x6B64;&#x6A21;&#x5F0F;&#x5219;&#x5E94;&#x5728;&#x4E0A;&#x65B9;&#x4E0B;&#x8F7D;&#x5730;&#x5740;&#x4E2D;&#x9009;&#x62E9;&#x4E0B;&#x8F7D;<a href="https://github.com/microsoftarchive/redis/releases/download/win-3.2.100/Redis-x64-3.2.100.zip" target="_blank">Redis-x64-3.2.100.zip</a></p>
<ul>
<li>&#x9996;&#x5148;&#x6211;&#x4EEC;&#x5C06;&#x4E0B;&#x8F7D;&#x7684;zip&#x538B;&#x7F29;&#x6587;&#x4EF6;&#x89E3;&#x538B;&#x81F3;&#x4EFB;&#x610F;&#x6587;&#x4EF6;&#x5939;,&#x8FDB;&#x5165;&#x6587;&#x4EF6;&#x5939;</li>
<li>&#x53CC;&#x51FB;redis-server.exe&#x6587;&#x4EF6;&#x542F;&#x52A8;Redis&#x670D;&#x52A1;&#x7AEF;
&#x6CE8;&#xFF1A;&#x8BE5;&#x6A21;&#x5F0F;&#x4E0B;&#x9ED8;&#x8BA4;&#x914D;&#x7F6E;&#x4E3A;&#xFF1A;
Host:127.0.0.1
Port:6379
Pass:&#x9ED8;&#x8BA4;&#x4E3A;&#x7A7A;</li>
</ul>
<h2 id="redis&#x914D;&#x7F6E;">Redis&#x914D;&#x7F6E;</h2>
<p>&#x4E00;&#x822C;&#x6765;&#x8BF4;Redis&#x4E2D;&#x6211;&#x4EEC;&#x7ECF;&#x5E38;&#x7528;&#x5230;&#x7684;&#x914D;&#x7F6E;&#x9879;&#x6709;&#x4EE5;&#x4E0B;&#x51E0;&#x9879;&#xFF1A;</p>
<ul>
<li><code>port:6379</code>&#x6307;&#x5B9A;&#x8BBF;&#x95EE;redis&#x670D;&#x52A1;&#x7AEF;&#x7684;&#x7AEF;&#x53E3;&#x3002;</li>
<li><code>bind:127.0.0.1</code>&#x6307;&#x5B9A;redis&#x7ED1;&#x5B9A;&#x7684;&#x4E3B;&#x673A;&#x5730;&#x5740;&#x3002;</li>
<li><code>timeout:</code>&#x6307;&#x5B9A;&#x5BA2;&#x6237;&#x7AEF;&#x8FDE;&#x63A5;redis&#x670D;&#x52A1;&#x5668;&#x65F6;&#xFF0C;&#x5F53;&#x95F2;&#x7F6E;&#x7684;&#x65F6;&#x95F4;&#x4E3A;&#x591A;&#x5C11;&#xFF08;&#x5982;300&#xFF09;&#x65F6;&#xFF0C;&#x5173;&#x95ED;&#x8FDE;&#x63A5;&#x3002;</li>
<li><code>loglevel:</code>&#x6307;&#x5B9A;redis&#x6570;&#x636E;&#x5E93;&#x7684;&#x65E5;&#x5FD7;&#x7EA7;&#x522B;&#xFF0C;&#x5E38;&#x7528;&#x7684;&#x65E5;&#x5FD7;&#x7EA7;&#x522B;&#x6709;<code>debug</code>&#x3001;<code>verbose</code>&#x3001;<code>notice</code>&#x3001;<code>warning</code>&#xFF0C;&#x4E0D;&#x8FDB;&#x884C;&#x4FEE;&#x6539;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#x9ED8;&#x8BA4;&#x7684;&#x662F;<code>notice</code>&#x3002;</li>
<li><code>save:</code>&#x6307;&#x5B9A;redis&#x6570;&#x636E;&#x5E93;&#x591A;&#x957F;&#x65F6;&#x95F4;&#x5185;&#xFF08;s&#xFF09;&#x6709;&#x591A;&#x5C11;&#x6B21;&#xFF08;c&#xFF09;&#x66F4;&#x65B0;&#x64CD;&#x4F5C;&#x65F6;&#x5C31;&#x628A;&#x7F13;&#x5B58;&#x4E2D;&#x7684;&#x6570;&#x636E;&#x540C;&#x6B65;&#x5230;&#x672C;&#x5730;&#x5E93;&#xFF0C;&#x6BD4;&#x5982;&#xFF1A;save 600 2&#xFF0C;&#x6307;&#x7684;&#x662F;10&#x5206;&#x949F;&#x5185;&#x6709;2&#x6B21;&#x66F4;&#x65B0;&#x64CD;&#x4F5C;&#xFF0C;&#x5C31;&#x540C;&#x6B65;&#x5230;&#x672C;&#x5730;&#x5E93;&#x3002;</li>
<li><code>dir:</code>&#x6307;&#x5B9A;redis&#x672C;&#x5730;&#x6570;&#x636E;&#x6587;&#x4EF6;&#x5B58;&#x653E;&#x7684;&#x76EE;&#x5F55;&#x3002;</li>
<li><code>requirepass:</code>&#x6307;&#x5B9A;redis&#x7684;&#x8BBF;&#x95EE;&#x5BC6;&#x7801;&#x3002;
&#x6CE8;&#xFF1A;&#x5982;&#x679C;&#x60A8;&#x65E0;&#x6CD5;&#x7406;&#x89E3;&#x4E0A;&#x9762;&#x6BCF;&#x4E00;&#x9879;&#x7684;&#x542B;&#x4E49;&#xFF0C;&#x90A3;&#x4E48;&#x8BF7;&#x52FF;&#x4FEE;&#x6539;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</li>
</ul>
<h2 id="redisbungee&#x63D2;&#x4EF6;&#x914D;&#x7F6E;">RedisBungee&#x63D2;&#x4EF6;&#x914D;&#x7F6E;</h2>
<p>&#x8FD9;&#x91CC;&#x4EC5;&#x5C55;&#x793A;Redis&#x76F8;&#x5173;&#x90E8;&#x5206;&#xFF1A;</p>
<pre><code>#Redis&#x670D;&#x52A1;&#x5668;IP&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A;127.0.0.1
redis-server: 127.0.0.1
#Redis&#x7AEF;&#x53E3;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A;6379
redis-port: 6379
#Redis&#x5BC6;&#x7801;,&#x9ED8;&#x8BA4;&#x4E3A;&#x7A7A;
#&#x5982;&#x679C;&#x4F60;&#x7684;Redis&#x5BC6;&#x7801;&#x4E3A; &#x7EAF;&#x6570;&#x5B57; &#x8BF7;&#x5220;&#x9664; &quot;&quot;
redis-password: &quot;&quot;
#Redis&#x670D;&#x52A1;&#x5668;&#x6700;&#x5927;&#x8FDE;&#x63A5;&#x6570;.
#&#x9ED8;&#x8BA4;&#x503C;&#x4E3A; 8. &#x8BF7;&#x4E0D;&#x8981;&#x6539;&#x53D8;&#x8FD9;&#x4E2A;&#x503C;,&#x9664;&#x975E;&#x4F60;&#x6709;&#x5927;&#x91CF;&#x63D2;&#x4EF6;&#x6216;&#x73A9;&#x5BB6;.
max-redis-connections: 8
</code></pre><p>&#x63D2;&#x4EF6;&#x8BE6;&#x7EC6;&#x914D;&#x7F6E;&#x8BF7;&#x524D;&#x5F80;MCBBS&#x67E5;&#x770B;<a href="https://www.mcbbs.net/thread-691147-1-1.html" target="_blank">RedisBungee</a>&#x7684;&#x4ECB;&#x7ECD;&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
                <a href="MongoDB.html" class="navigation navigation-next navigation-unique" aria-label="Next page: 第二节 MongoDB 的安装与配置">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"第一节 Redis 的安装与配置","level":"1.5.1","depth":2,"next":{"title":"第二节 MongoDB 的安装与配置","level":"1.5.2","depth":2,"path":"MongoDB.md","ref":"MongoDB.md","articles":[]},"previous":{"title":"第三单元 扩展","level":"1.5","depth":1,"ref":"","articles":[{"title":"第一节 Redis 的安装与配置","level":"1.5.1","depth":2,"path":"Redis.md","ref":"Redis.md","articles":[]},{"title":"第二节 MongoDB 的安装与配置","level":"1.5.2","depth":2,"path":"MongoDB.md","ref":"MongoDB.md","articles":[]},{"title":"第三节 认识资源包","level":"1.5.3","depth":2,"path":"Texture.md","ref":"Texture.md","articles":[]},{"title":"第四节 什么是皮肤？","level":"1.5.4","depth":2,"path":"Skin.md","ref":"Skin.md","articles":[]},{"title":"第五节 什么是3D建模？","level":"1.5.5","depth":2,"path":"Model.md","ref":"Model.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","-sharing","search-plus","splitter","github","expandable-chapters","code","ga","back-to-top-button"],"styles":{"website":"styles/website.css"},"pluginsConfig":{"github":{"url":"https://github.com/Mhy278/MinecraftServerHostGuide"},"splitter":{},"code":{"copyButtons":true},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"back-to-top-button":{},"ga":{"configuration":"auto","token":"UA-161510371-1"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{},"search-plus":{}},"theme":"default","author":"Mhy278,Drenal，冰冷，asougi85，魂葬，弱鸡绿毛怪，tdiant，蛋黄酱，Hmm1313133，几何，火雨，Auange_M夜幕","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"我的世界服务器搭建指南","language":"zh-hans","gitbook":"*","description":"Minecraft 我的世界开服零基础教学"},"file":{"path":"Redis.md","mtime":"2021-05-08T07:19:24.577Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-05-08T07:20:16.018Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-ga/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

